/**
 * 
 */
package com.roncoo.adminlte.controller.admin;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.roncoo.adminlte.bean.Result;
import com.roncoo.adminlte.bean.entity.RcDataDictionary;
import com.roncoo.adminlte.util.base.BaseController;
import com.roncoo.adminlte.util.base.Page;
import com.roncoo.adminlte.util.base.PageBean;

/**
 * @author zhangliping
 *
 */
@Controller
@RequestMapping(value = "/admin/case", method = RequestMethod.POST)
public class CaseController extends BaseController {

	@RequestMapping(value = LIST, method = RequestMethod.GET)
	public void list() {

	}
	
	
	/**
	 * 分页查询
	 * 
	 * @param start
	 * @param pageSize
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = PAGE)
	public PageBean<RcDataDictionary> queryForPage(@RequestParam(value = "start", defaultValue = "1") int start, @RequestParam(value = "length", defaultValue = "10") int pageSize, @RequestParam(value = "date", required = false) String date, @RequestParam(value = "search", required = false) String search) {
//		Result<Page<RcDataDictionary>> result = biz.listForPage((start / pageSize) + 1, pageSize, search, date);
//		if (result.isStatus()) {
//			return new PageBean<RcDataDictionary>(result.getResultData());
//		}
		return new PageBean<RcDataDictionary>();
	}
}
